package kr.co.redcircle.service.oAuth.model.testcase;

import kr.co.redcircle.service.oAuth.api.facebook.FaceBookApi;
import kr.co.redcircle.service.oAuth.model.SNSModel;
import kr.co.redcircle.service.oAuth.model.SNSServiceBuilder;

public class OAuthServiceTestCase {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		
			SNSModel facebookModel = SNSServiceBuilder.getInstance(SNSServiceBuilder.FACEBOOK);
			String authUrl = facebookModel.getAuthorizationUrl();
			
			System.out.println("auth url : " + authUrl);
			
/*			FaceBookApi facebookApi = new FaceBookApi();
			facebookApi.setProvider(facebookApi);
			facebookApi.buildService();
			
			// create facebook instance
			// redirect authorization url
			String authUrl = facebookApi.getAuthorizationUrl(null);
			System.out.println("facebook : authUrl [" + authUrl + "]");
*//*			
			ISNSExcutable snsTargetModel = SNSServiceBuilder.getInstance(SNSServiceBuilder.FACEBOOK);
			snsTargetModel.buildService();
			ISNSResult sresult = snsTargetModel.execute(SNSServiceBuilder.COMMAND_POST_THREAD);
*/
	}
//https://api.twitter.com/oauth/authorize?oauth_token=vaWDdyjHX2aByKFELUxRLGrduBQgOImrAJbMDNQ6Q&oauth_callback=http%3A%2F%2Fbroker.inpion.com%2FExampleBizBrokerWASClient%2FTwitterOAuth.jsp
}
